From: Roc Lai Date: Tue, 21 Oct 2025 15:19:44 +0000 (+0800) Subject: luci-app-frpc: Add the bind_addr & bind_port options to the visitor role. X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=1b8564ead6931038a4822652c885c7d54d2e4b38;p=project%2Fluci.git luci-app-frpc: Add the bind_addr & bind_port options to the visitor role. Fix: https://github.com/openwrt/luci/issues/8024 Signed-off-by: Roc Lai --- diff --git a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js index ab6e061e10..a1bf2442cc 100644 --- a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js +++ b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js @@ -69,6 +69,8 @@ var httpProxyConf = [ var stcpProxyConf = [ [form.ListValue, 'role', _('Role'), undefined, {values: ['server', 'visitor']}], [form.Value, 'server_name', _('Server name'), undefined, {depends: [{role: 'visitor'}]}], + [form.Value, 'bind_addr', _('Bind addr'), undefined, {depends: [{role: 'visitor'}]}], + [form.Value, 'bind_port', _('Bind port'), undefined, {depends: [{role: 'visitor'}]}], [form.Value, 'sk', _('Sk')], ]; diff --git a/applications/luci-app-frpc/po/zh_Hans/frpc.po b/applications/luci-app-frpc/po/zh_Hans/frpc.po index 5a0e638c6d..98c4436c25 100644 --- a/applications/luci-app-frpc/po/zh_Hans/frpc.po +++ b/applications/luci-app-frpc/po/zh_Hans/frpc.po @@ -342,6 +342,14 @@ msgstr "崩溃时重启" msgid "Role" msgstr "角色" +#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:72 +msgid "Bind addr" +msgstr "绑定地址​​" + +#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:73 +msgid "Bind port" +msgstr "绑定端口" + #: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:13 msgid "Run daemon as group" msgstr "以此组权限运行" diff --git a/applications/luci-app-frpc/po/zh_Hant/frpc.po b/applications/luci-app-frpc/po/zh_Hant/frpc.po index 3e32636bd4..8a7cd6d372 100644 --- a/applications/luci-app-frpc/po/zh_Hant/frpc.po +++ b/applications/luci-app-frpc/po/zh_Hant/frpc.po @@ -341,6 +341,14 @@ msgstr "崩潰時重生" msgid "Role" msgstr "角色" +#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:72 +msgid "Bind addr" +msgstr "綁定位址​​​​" + +#: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:73 +msgid "Bind port" +msgstr "綁定埠號​​" + #: applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js:13 msgid "Run daemon as group" msgstr "以群組執行背景執行"